package com.atguigu.lease.web.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.lease.model.entity.LabelInfo;
import com.atguigu.lease.web.app.service.LabelInfoService;
import com.atguigu.lease.web.app.mapper.LabelInfoMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author liubo
* @description 针对表【label_info(标签信息表)】的数据库操作Service实现
* @createDate 2023-07-26 11:12:39
*/
@Service
public class LabelInfoServiceImpl extends ServiceImpl<LabelInfoMapper, LabelInfo>
    implements LabelInfoService{

    /**
     * 根据id获取公寓标签信息
     *
     * @param id 公寓id
     * @return 公寓标签信息
     */
    @Override
    public List<LabelInfo> getLabelListByApartmentId(Long id) {
        return baseMapper.selectLabelListByApartmentId(id);
    }

    /**
     * 获取房间的标签信息列表
     *
     * @param id 房间id
     * @return 房间标签信息列表
     */
    @Override
    public List<LabelInfo> getLabelListByRoomId(Long id) {
        return baseMapper.selectLabelListByRoomId(id);
    }
}




